package cn.kgc.vue.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName sys_course
 */
@TableName(value ="sys_course")
@Data
public class Course implements Serializable {
    /**
     * 课程id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 课程名字
     */
    @TableField(value = "course_name")
    private String courseName;

    /**
     * 课程编号
     */
    @TableField(value = "course_no")
    private String courseNo;

    /**
     * 逻辑删除字段
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;

    @TableField(value = "version")
    @Version
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}